Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(table): define when dataSource update, pagination behaviour #295

Merged
merged 1 commit into from
Oct 12, 2020
Merged

refactor(table): define when dataSource update, pagination behaviour #295

merged 1 commit into from
Oct 12, 2020

Conversation

LEEHONCN
Copy link
Contributor

affects: @gio-design/components

目前的逻辑是,当数据源改变 且 新的总页数小于当前页数时,分页重置到第一页。否则不重置页数。
筛选也会重置页数。

Related issue link

Changelog

Language Changelog
🇺🇸 English define when dataSource update, pagination behaviour
🇨🇳 Chinese 定义当数据源改变时,分页行为

Self check

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@LEEHONCN LEEHONCN added add to next version refactor 即不是新增功能,也不是修改bug的代码变动 labels Oct 10, 2020
@azure-pipelines
Copy link

Deploy preview for gio-design failed.

@codecov
Copy link

codecov bot commented Oct 10, 2020

Codecov Report

Merging #295 into master will increase coverage by 0.26%.
The diff coverage is 82.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
+ Coverage   64.25%   64.52%   +0.26%     
==========================================
  Files         100      100              
  Lines        2907     2912       +5     
  Branches      738      701      -37     
==========================================
+ Hits         1868     1879      +11     
+ Misses       1034     1029       -5     
+ Partials        5        4       -1     
Impacted Files Coverage Δ
...ckages/components/src/components/select/Select.tsx 0.00% <ø> (ø)
packages/components/src/components/table/Title.tsx 78.37% <60.00%> (-2.18%) ⬇️
packages/components/src/components/table/Table.tsx 93.65% <80.00%> (+3.32%) ⬆️
...kages/components/src/components/menu/MenuTitle.tsx 100.00% <100.00%> (ø)
...onents/src/components/table/hook/usePagination.tsx 94.28% <100.00%> (+9.43%) ⬆️
...ages/components/src/components/modal/StepModal.tsx 72.05% <0.00%> (ø)
packages/components/src/components/table/Empty.tsx 100.00% <0.00%> (+50.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00ecfef...e09d5ed. Read the comment docs.

@azure-pipelines
Copy link

Deploy preview for ready! ✅ https://deploy-preview-295--gio-design.surge.sh

@zzt1224 zzt1224 merged commit 00b8cde into growingio:master Oct 12, 2020
itiiss pushed a commit that referenced this pull request Oct 26, 2020
* feat: add grid

* feat: add test cases

affects: @gio-design/components, website

* fix: make ts happy again

* chore: revert yarn.lock file

* chore: remove package-lock.json

* fix: typo

* feat: time-picker (#292)

* update: style

* chore: time-picker

* fix: clear log

Co-authored-by: chen_gh <chenguanghao@growingio.com>

* feat(searchbar): add placeholder prop (#290)

affects: @gio-design/components

* refactor(table): define when dataSource update, pagination behaviour (#295)

affects: @gio-design/components

* feat(date-picker): add rengePicker feature (#296)

affects: @gio-design/components, website

add rangePicker adds a new parameter for the renderExtraFooter method to return a React.ReactNode to
add a custion footer.fix rangePicker change the date or the date displayed in the year does not
change. fix rangePicker onSelect method is invalid

* docs: @gio-design/components 20.10.0 change log (#306)

* docs: @gio-design/components 20.10.0 change log

* docs: @gio-design/components 20.10.0 change log

* docs: @gio-design/components 20.10.1 change log (#309)

affects: @gio-design/components, @gio-design/icons, @gio-design/tokens, website

fix changelog and version numbers;

* docs: @gio-design/components 20.10.2 change log

affects: @gio-design/components, @gio-design/icons, website

* docs: update version number

affects: website

* fix: time-picker style (#307)

Co-authored-by: chen_gh <chenguanghao@growingio.com>

* feat(date-picker): add dateRangePicker disabledDate methods (#314)

affects: @gio-design/components, website

daa dateRangePicker disabledDate methods and fix props.value change is not change Input value

ISSUES CLOSED: #304

* fix: allow use value control selections; (#317)

* fix: allow use value control selections;

affects: @gio-design/components, website

* fix: fix type bug

affects: @gio-design/components

* fix: modify defaultSelection as default value of defaultValue

affects: @gio-design/components

* style(form): 根据stylelint的提示,修改了form组件中index.less中部分属性的顺序 (#318)

affects: @gio-design/components

根据stylelint的提示,修改了form组件中index.less中部分属性的顺序

* fix select text overflow and add icons (#319)

* fix: fix overflow text elips

affects: @gio-design/components

* fix: add iconns

affects: @gio-design/icons

* docs: @gio-design/components 20.10.3 change log (#320)

affects: @gio-design/components, @gio-design/icons, website

* docs: @gio-designs/components release-20.10.4 change log (#322)

affects: @gio-design/components, @gio-design/icons, website

replace 20.10.3 empty package

* feat: add grid

* feat: add test cases

affects: @gio-design/components, website

* fix: make ts happy again

* chore: revert yarn.lock file

* chore: remove package-lock.json

* fix: typo

* fix(upload): upload组件增加一个可选参数isBorder,控制图片上传成功后边框是否显示 (#331)

affects: @gio-design/components, website

Upload组件增加一个可选参数isBorder,控制图片上传成功后边框是否显示,默认为false

* chore: create release pull request template

* chore: delete old pull request template

* chore: create feature or fix pull request template

* fix(dropdown): 修复Dropdown组件中placement方向的问题,由12个方向改为只有上下6个方向可选,默认方向为下 (#333)

affects: @gio-design/components, website

修复Dropdown组件中placement方向的问题,由12个方向改为只有上下6个方向可选,默认方向为下

* style(select): 定义了select组件中input选择框内的文字尺寸 (#337)

affects: @gio-design/components

定义了select组件中input选择框内的文字尺寸

* test(alert): unit test of alert component is added (#339)

affects: @gio-design/components

Unit test of alert component is added

* fix(components): change folder name from camel case to kebab case (#329)

* fix(components): change folder name from camel case to kebab case

affects: @gio-design/components

* fix(components): fix tab-nav folder name

affects: @gio-design/components, website

* fix: index time-picker

Co-authored-by: G_H <gh_c@qq.com>
Co-authored-by: chen_gh <chenguanghao@growingio.com>
Co-authored-by: Lee Hon <lihang@growingio.com>
Co-authored-by: cnsummer <31471551+cnsummer@users.noreply.github.com>
Co-authored-by: zhaoting zhou <zhouzhaoting@growingio.com>
Co-authored-by: WORLDI <66404428+WORLDI@users.noreply.github.com>
Co-authored-by: Jack <panjie@growingio.com>
Co-authored-by: phyzess <phyzess@gmail.com>
@LEEHONCN LEEHONCN deleted the table-fix branch November 4, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor 即不是新增功能,也不是修改bug的代码变动
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants